package view.launchers;

import java.awt.Color;
import java.awt.EventQueue;
import java.awt.Toolkit;

import javax.swing.JFrame;
import javax.swing.UIManager;

import view.View;
import controller.TestSkiller;

@SuppressWarnings("serial")
public class TestSkillerWindow extends JFrame {

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					TestSkillerWindow frame = new TestSkillerWindow();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	private TestSkiller controller;

	/**
	 * Create the frame.
	 */
	public TestSkillerWindow() {
		try {
			UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
		} catch (Exception e) {
			System.out.println("Couldnt load system look and feel");
		}
		
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 600, 580);

		setForeground(Color.WHITE);
		
		setResizable(false);
		setIconImage(Toolkit.getDefaultToolkit().getImage(View.class.getResource("/resources/logoCut.png")));
		
		controller = new TestSkiller(this);
		addWindowListener(controller);
		
		setContentPane(controller.getView());
		setTitle("TestSkiller");
	}

}
